/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package it.wzm.memento.object;

/**
 *
 * @author leonardo
 */
public abstract class Mobject {
    
    /**
     * Declaring main type as enum
     */
    enum Type {
        
        VDB((short)0),
        ELEMENT((short)1),
        USER((short)2),
        CARD((short)3);
        
        short type;
        
        Type(short type) {
            this.type=type;
        }
    }
    
    private Type type;      // identyfing ourselves
    private String name;    // identifyng name
    private long mid;       // identifier in database
      
    
    /**
     * calling default construtor
     */
    Mobject(Type type) {
        this.setType(type); // identifyng the correct type
    }    
    
    /**
     * Setter for Type
     * @return
     */
    private final void setType(Type type) {
        this.type=type;
    }
    /**
     * Getter for Type
     * @return
     */
    final Type getType() {
        return this.type;
    }
    
    
    final void setName(String name) {
        this.name = name;
    }
    public final String getName() {
        return name;
    }
    
    
    
    
    
    
    
}
